package com.cn.bukeManage.service;

import java.util.List;
import java.util.Set;

import org.springframework.ui.Model;

import com.cn.bukeManage.pojo.Resource;
import com.cn.bukeManage.pojo.Role;
import com.cn.bukeManage.pojo.User;
import com.cn.bukeManage.pojo.page.Page;

public interface UserService {

	public User checkLogin(User user);
	
	public User getUser(String userName);
	
	public Set<Role> getRoles(Integer userId);
	
	public Set<Resource>getResources(Integer userId);

	int isUserExit(User user);

	void updateUser(User user);

	User checkUser(String userName, String password);

	Double getMyWallet(String userId);

	User get(Integer userId);

	public Integer blockUp(Integer userId);
	
	public Page findAllUsers(Integer currentPage,Model model);//分页查询user
	

}
